import 'normalize.css';

import Vue from 'vue';
import App from '@/App.vue';
import router from '@/router';
import store from '@/store';

// statistic
import '@/../static/scripts/common/growingio';
import '@/../static/scripts/common/sensors';
import '@/../static/scripts/common/webview_javascript_bridge';

import Request from '@/assets/scripts/common/request';
import Utility from '@/assets/scripts/common/utility';
import Validate from '@/assets/scripts/common/validate';
import Sensors from '@/assets/scripts/common/sensors';
import AppBridge from '@/assets/scripts/common/app_bridge';

Vue.config.productionTip = false;
Vue.config.errorHandler = (err, vm) => {
	console.error(vm, err);
};

Vue.use(Request);
Vue.use(Utility);
Vue.use(Validate);
Vue.use(Sensors);
Vue.use(AppBridge);

/* eslint-disable no-new */
new Vue({
	'el': '#app',
	'template': '<App/>',
	'components': {App},
	router,
	store
});
